<?php
class User extends AppModel {
	
	var $name = 'User';
	var $displayField = 'username';
	var $validate = array(
		'username' => array(
			'format' => array(
				'rule' => 'alphaNumeric',
				'last' => true
			),
			'unique' => array(
				'rule' => 'isUnique',
				'last' => true
			)
		),
		'password' => array(
			'format' => array(
				'rule' => 'notEmpty',
				'last' => 'true'
			)
		)
	);
	var $belongsTo = array(
		'Aro' => array(
			'className' => 'Aro',
			'foreignKey' => 'aro_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
?>